<<<<<<< .mine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/Prngd_Server.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_prngd___server_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Prngd_Server.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Prngd_Server.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Last edited: 21.08.2014</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Author: David Noack</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef PRNGD_SERVER_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define PRNGD_SERVER_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;Tcp_Server.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;Udp_Server.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;Uds_Server.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;MQ_Server.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_prngd___server.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_prngd___server.html">Prngd_Server</a>{</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">   33</a></span>&#160;        <a class="code" href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">Prngd_Server</a>()</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a> = NULL;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a> = NULL;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a> = NULL;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a> = NULL;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a> = NULL;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            <a class="code" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">tcp_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            <a class="code" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">udp_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <a class="code" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">uds_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <a class="code" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">mq_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        };</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">   48</a></span>&#160;        <a class="code" href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">~Prngd_Server</a>()</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a> != NULL)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a> != NULL)</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a> != NULL)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a> != NULL)</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a> != NULL)</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        };</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_prngd___server.html#ad4f2bc38081117e23a1c385ff1dd5e0b">start</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">   74</a></span>&#160;        <a class="code" href="class_prngd.html">Prngd</a>* <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">   76</a></span>&#160;        <a class="code" href="class_tcp___server.html">Tcp_Server</a>* <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">   78</a></span>&#160;        <a class="code" href="class_udp___server.html">Udp_Server</a>* <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">   80</a></span>&#160;        <a class="code" href="class_uds___server.html">Uds_Server</a>* <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">   82</a></span>&#160;        <a class="code" href="class_m_q___server.html">MQ_Server</a>* <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">   85</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">tcp_up</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">   87</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">udp_up</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">   89</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">uds_up</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">   91</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">mq_up</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd___server.html#a7e37c0b48f73b29a0295b475d5dc22b9">readParameters</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">  101</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">isAInterfaceUp</a>()</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keywordflow">if</span>(tcp_up || udp_up || uds_up || mq_up)</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">  110</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">checkAllInterfaces</a>()</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <span class="keywordflow">if</span>(tcpserver != NULL)</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                tcp_up = tcpserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                tcp_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keywordflow">if</span>(udpserver != NULL)</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                udp_up = udpserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                udp_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <span class="keywordflow">if</span>(udsserver != NULL)</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                uds_up = udsserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                uds_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <span class="keywordflow">if</span>(mqserver != NULL)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                mq_up = mqserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                mq_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        }</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;};</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PRNGD_SERVER_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_prngd___server_html_a6f2def7dca00e4df89754e3b5aa8aaf4"><div class="ttname"><a href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">Prngd_Server::mq_up</a></div><div class="ttdeci">bool mq_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:91</div></div>
<div class="ttc" id="class_prngd___server_html_ad0b9de11503ff2436653251dd89f4e79"><div class="ttname"><a href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">Prngd_Server::Prngd_Server</a></div><div class="ttdeci">Prngd_Server()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:33</div></div>
<div class="ttc" id="class_tcp___server_html"><div class="ttname"><a href="class_tcp___server.html">Tcp_Server</a></div><div class="ttdoc">Implement a tcp-server for prngd. </div><div class="ttdef"><b>Definition:</b> Tcp_Server.h:19</div></div>
<div class="ttc" id="class_prngd___server_html_a464abab0c83554f6c69682810f300e7d"><div class="ttname"><a href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">Prngd_Server::localserver</a></div><div class="ttdeci">Prngd * localserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:74</div></div>
<div class="ttc" id="class_prngd___server_html_ab374ada7cdb8b6eda7215549581e8467"><div class="ttname"><a href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">Prngd_Server::uds_up</a></div><div class="ttdeci">bool uds_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:89</div></div>
<div class="ttc" id="class_udp___server_html"><div class="ttname"><a href="class_udp___server.html">Udp_Server</a></div><div class="ttdoc">Implements a udp-server for prngd. </div><div class="ttdef"><b>Definition:</b> Udp_Server.h:18</div></div>
<div class="ttc" id="class_prngd_html"><div class="ttname"><a href="class_prngd.html">Prngd</a></div><div class="ttdoc">Can generate random bits with the help of a BBS-generator or a ...... </div><div class="ttdef"><b>Definition:</b> Prngd.h:48</div></div>
<div class="ttc" id="class_prngd___server_html_a7e37c0b48f73b29a0295b475d5dc22b9"><div class="ttname"><a href="class_prngd___server.html#a7e37c0b48f73b29a0295b475d5dc22b9">Prngd_Server::readParameters</a></div><div class="ttdeci">int readParameters(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> Prngd_Server.cpp:11</div></div>
<div class="ttc" id="class_prngd___server_html_a341f15da03cd42224bc2dd4851a63ffc"><div class="ttname"><a href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">Prngd_Server::udp_up</a></div><div class="ttdeci">bool udp_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:87</div></div>
<div class="ttc" id="class_prngd___server_html_a21dc595a042cc50a08c916cc7c254980"><div class="ttname"><a href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">Prngd_Server::isAInterfaceUp</a></div><div class="ttdeci">bool isAInterfaceUp()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:101</div></div>
<div class="ttc" id="class_prngd___server_html_ad4f2bc38081117e23a1c385ff1dd5e0b"><div class="ttname"><a href="class_prngd___server.html#ad4f2bc38081117e23a1c385ff1dd5e0b">Prngd_Server::start</a></div><div class="ttdeci">void start(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> Prngd_Server.cpp:84</div></div>
<div class="ttc" id="class_prngd___server_html_acdc2f90accfdf4244e58368f509d627f"><div class="ttname"><a href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">Prngd_Server::udsserver</a></div><div class="ttdeci">Uds_Server * udsserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:80</div></div>
<div class="ttc" id="class_prngd___server_html_a5373032c21c2cc823b199dc2930abe2e"><div class="ttname"><a href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">Prngd_Server::~Prngd_Server</a></div><div class="ttdeci">~Prngd_Server()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:48</div></div>
<div class="ttc" id="class_prngd___server_html_ad99025c55191804ad3a296035383e7f5"><div class="ttname"><a href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">Prngd_Server::checkAllInterfaces</a></div><div class="ttdeci">void checkAllInterfaces()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:110</div></div>
<div class="ttc" id="class_prngd___server_html"><div class="ttname"><a href="class_prngd___server.html">Prngd_Server</a></div><div class="ttdoc">Main server programm to run prngd as tcp, udp, uds or mq server (or all togehter). </div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:28</div></div>
<div class="ttc" id="class_m_q___server_html"><div class="ttname"><a href="class_m_q___server.html">MQ_Server</a></div><div class="ttdoc">Implements a message-queue-server for prngd. </div><div class="ttdef"><b>Definition:</b> MQ_Server.h:19</div></div>
<div class="ttc" id="class_prngd___server_html_a56b3481beeb7ae2fb1309f09ab2faec5"><div class="ttname"><a href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">Prngd_Server::mqserver</a></div><div class="ttdeci">MQ_Server * mqserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:82</div></div>
<div class="ttc" id="class_prngd___server_html_a668fa002a51239380b13333ade036250"><div class="ttname"><a href="class_prngd___server.html#a668fa002a51239380b13333ade036250">Prngd_Server::tcpserver</a></div><div class="ttdeci">Tcp_Server * tcpserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:76</div></div>
<div class="ttc" id="class_prngd___server_html_a98c5ea57980401cce1bc67fa3557df07"><div class="ttname"><a href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">Prngd_Server::tcp_up</a></div><div class="ttdeci">bool tcp_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:85</div></div>
<div class="ttc" id="class_com___interface_html_af4b655641d2e003fa7595252e35a13f7"><div class="ttname"><a href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">Com_Interface::isActive</a></div><div class="ttdeci">bool isActive()</div><div class="ttdef"><b>Definition:</b> Com_Interface.h:54</div></div>
<div class="ttc" id="class_uds___server_html"><div class="ttname"><a href="class_uds___server.html">Uds_Server</a></div><div class="ttdoc">Implements a Unix-domain-socket server for prngd. </div><div class="ttdef"><b>Definition:</b> Uds_Server.h:22</div></div>
<div class="ttc" id="class_prngd___server_html_a21407f702f0fe5cc21a9da0be7f93264"><div class="ttname"><a href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">Prngd_Server::udpserver</a></div><div class="ttdeci">Udp_Server * udpserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:78</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>Prngd_Server.h</b></li>
    <li class="footer">Generated on Fri Aug 29 2014 14:14:52 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
=======
<<<<<<< .mine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/Prngd_Server.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_prngd___server_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Prngd_Server.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Prngd_Server.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Last edited: 21.08.2014</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Author: David Noack</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef PRNGD_SERVER_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define PRNGD_SERVER_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;Tcp_Server.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;Udp_Server.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;Uds_Server.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;MQ_Server.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_prngd___server.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_prngd___server.html">Prngd_Server</a>{</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">   33</a></span>&#160;        <a class="code" href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">Prngd_Server</a>()</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a> = NULL;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a> = NULL;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a> = NULL;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a> = NULL;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a> = NULL;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            <a class="code" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">tcp_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            <a class="code" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">udp_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <a class="code" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">uds_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <a class="code" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">mq_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        };</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">   48</a></span>&#160;        <a class="code" href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">~Prngd_Server</a>()</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a> != NULL)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a> != NULL)</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a> != NULL)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a> != NULL)</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a> != NULL)</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        };</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_prngd___server.html#ad4f2bc38081117e23a1c385ff1dd5e0b">start</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">   74</a></span>&#160;        <a class="code" href="class_prngd.html">Prngd</a>* <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">   76</a></span>&#160;        <a class="code" href="class_tcp___server.html">Tcp_Server</a>* <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">   78</a></span>&#160;        <a class="code" href="class_udp___server.html">Udp_Server</a>* <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">   80</a></span>&#160;        <a class="code" href="class_uds___server.html">Uds_Server</a>* <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">   82</a></span>&#160;        <a class="code" href="class_m_q___server.html">MQ_Server</a>* <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">   85</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">tcp_up</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">   87</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">udp_up</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">   89</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">uds_up</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">   91</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">mq_up</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd___server.html#a7e37c0b48f73b29a0295b475d5dc22b9">readParameters</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">  101</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">isAInterfaceUp</a>()</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keywordflow">if</span>(tcp_up || udp_up || uds_up || mq_up)</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">  110</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">checkAllInterfaces</a>()</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <span class="keywordflow">if</span>(tcpserver != NULL)</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                tcp_up = tcpserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                tcp_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keywordflow">if</span>(udpserver != NULL)</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                udp_up = udpserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                udp_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <span class="keywordflow">if</span>(udsserver != NULL)</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                uds_up = udsserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                uds_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <span class="keywordflow">if</span>(mqserver != NULL)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                mq_up = mqserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                mq_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        }</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;};</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PRNGD_SERVER_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_prngd___server_html_a6f2def7dca00e4df89754e3b5aa8aaf4"><div class="ttname"><a href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">Prngd_Server::mq_up</a></div><div class="ttdeci">bool mq_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:91</div></div>
<div class="ttc" id="class_prngd___server_html_ad0b9de11503ff2436653251dd89f4e79"><div class="ttname"><a href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">Prngd_Server::Prngd_Server</a></div><div class="ttdeci">Prngd_Server()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:33</div></div>
<div class="ttc" id="class_tcp___server_html"><div class="ttname"><a href="class_tcp___server.html">Tcp_Server</a></div><div class="ttdoc">Implement a tcp-server for prngd. </div><div class="ttdef"><b>Definition:</b> Tcp_Server.h:19</div></div>
<div class="ttc" id="class_prngd___server_html_a464abab0c83554f6c69682810f300e7d"><div class="ttname"><a href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">Prngd_Server::localserver</a></div><div class="ttdeci">Prngd * localserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:74</div></div>
<div class="ttc" id="class_prngd___server_html_ab374ada7cdb8b6eda7215549581e8467"><div class="ttname"><a href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">Prngd_Server::uds_up</a></div><div class="ttdeci">bool uds_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:89</div></div>
<div class="ttc" id="class_udp___server_html"><div class="ttname"><a href="class_udp___server.html">Udp_Server</a></div><div class="ttdoc">Implements a udp-server for prngd. </div><div class="ttdef"><b>Definition:</b> Udp_Server.h:18</div></div>
<div class="ttc" id="class_prngd_html"><div class="ttname"><a href="class_prngd.html">Prngd</a></div><div class="ttdoc">Can generate random bits with the help of a BBS-generator or a ...... </div><div class="ttdef"><b>Definition:</b> Prngd.h:48</div></div>
<div class="ttc" id="class_prngd___server_html_a7e37c0b48f73b29a0295b475d5dc22b9"><div class="ttname"><a href="class_prngd___server.html#a7e37c0b48f73b29a0295b475d5dc22b9">Prngd_Server::readParameters</a></div><div class="ttdeci">int readParameters(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> Prngd_Server.cpp:11</div></div>
<div class="ttc" id="class_prngd___server_html_a341f15da03cd42224bc2dd4851a63ffc"><div class="ttname"><a href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">Prngd_Server::udp_up</a></div><div class="ttdeci">bool udp_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:87</div></div>
<div class="ttc" id="class_prngd___server_html_a21dc595a042cc50a08c916cc7c254980"><div class="ttname"><a href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">Prngd_Server::isAInterfaceUp</a></div><div class="ttdeci">bool isAInterfaceUp()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:101</div></div>
<div class="ttc" id="class_prngd___server_html_ad4f2bc38081117e23a1c385ff1dd5e0b"><div class="ttname"><a href="class_prngd___server.html#ad4f2bc38081117e23a1c385ff1dd5e0b">Prngd_Server::start</a></div><div class="ttdeci">void start(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> Prngd_Server.cpp:84</div></div>
<div class="ttc" id="class_prngd___server_html_acdc2f90accfdf4244e58368f509d627f"><div class="ttname"><a href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">Prngd_Server::udsserver</a></div><div class="ttdeci">Uds_Server * udsserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:80</div></div>
<div class="ttc" id="class_prngd___server_html_a5373032c21c2cc823b199dc2930abe2e"><div class="ttname"><a href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">Prngd_Server::~Prngd_Server</a></div><div class="ttdeci">~Prngd_Server()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:48</div></div>
<div class="ttc" id="class_prngd___server_html_ad99025c55191804ad3a296035383e7f5"><div class="ttname"><a href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">Prngd_Server::checkAllInterfaces</a></div><div class="ttdeci">void checkAllInterfaces()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:110</div></div>
<div class="ttc" id="class_prngd___server_html"><div class="ttname"><a href="class_prngd___server.html">Prngd_Server</a></div><div class="ttdoc">Main server programm to run prngd as tcp, udp, uds or mq server (or all togehter). </div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:28</div></div>
<div class="ttc" id="class_m_q___server_html"><div class="ttname"><a href="class_m_q___server.html">MQ_Server</a></div><div class="ttdoc">Implements a message-queue-server for prngd. </div><div class="ttdef"><b>Definition:</b> MQ_Server.h:19</div></div>
<div class="ttc" id="class_prngd___server_html_a56b3481beeb7ae2fb1309f09ab2faec5"><div class="ttname"><a href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">Prngd_Server::mqserver</a></div><div class="ttdeci">MQ_Server * mqserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:82</div></div>
<div class="ttc" id="class_prngd___server_html_a668fa002a51239380b13333ade036250"><div class="ttname"><a href="class_prngd___server.html#a668fa002a51239380b13333ade036250">Prngd_Server::tcpserver</a></div><div class="ttdeci">Tcp_Server * tcpserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:76</div></div>
<div class="ttc" id="class_prngd___server_html_a98c5ea57980401cce1bc67fa3557df07"><div class="ttname"><a href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">Prngd_Server::tcp_up</a></div><div class="ttdeci">bool tcp_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:85</div></div>
<div class="ttc" id="class_com___interface_html_af4b655641d2e003fa7595252e35a13f7"><div class="ttname"><a href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">Com_Interface::isActive</a></div><div class="ttdeci">bool isActive()</div><div class="ttdef"><b>Definition:</b> Com_Interface.h:54</div></div>
<div class="ttc" id="class_uds___server_html"><div class="ttname"><a href="class_uds___server.html">Uds_Server</a></div><div class="ttdoc">Implements a Unix-domain-socket server for prngd. </div><div class="ttdef"><b>Definition:</b> Uds_Server.h:22</div></div>
<div class="ttc" id="class_prngd___server_html_a21407f702f0fe5cc21a9da0be7f93264"><div class="ttname"><a href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">Prngd_Server::udpserver</a></div><div class="ttdeci">Udp_Server * udpserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:78</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>Prngd_Server.h</b></li>
    <li class="footer">Generated on Fri Aug 29 2014 14:14:52 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
=======
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/Prngd_Server.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_prngd___server_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Prngd_Server.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Prngd_Server.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Last edited: 21.08.2014</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Author: David Noack</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef PRNGD_SERVER_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define PRNGD_SERVER_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;Tcp_Server.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;Udp_Server.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;Uds_Server.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;MQ_Server.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_prngd___server.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_prngd___server.html">Prngd_Server</a>{</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">   33</a></span>&#160;        <a class="code" href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">Prngd_Server</a>()</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a> = NULL;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a> = NULL;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a> = NULL;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a> = NULL;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a> = NULL;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            <a class="code" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">tcp_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            <a class="code" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">udp_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <a class="code" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">uds_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <a class="code" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">mq_up</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        };</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">   48</a></span>&#160;        <a class="code" href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">~Prngd_Server</a>()</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a> != NULL)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a> != NULL)</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a> != NULL)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a> != NULL)</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a> != NULL)</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                <span class="keyword">delete</span> <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        };</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_prngd___server.html#ad4f2bc38081117e23a1c385ff1dd5e0b">start</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">   74</a></span>&#160;        <a class="code" href="class_prngd.html">Prngd</a>* <a class="code" href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">localserver</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">   76</a></span>&#160;        <a class="code" href="class_tcp___server.html">Tcp_Server</a>* <a class="code" href="class_prngd___server.html#a668fa002a51239380b13333ade036250">tcpserver</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">   78</a></span>&#160;        <a class="code" href="class_udp___server.html">Udp_Server</a>* <a class="code" href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">udpserver</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">   80</a></span>&#160;        <a class="code" href="class_uds___server.html">Uds_Server</a>* <a class="code" href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">udsserver</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">   82</a></span>&#160;        <a class="code" href="class_m_q___server.html">MQ_Server</a>* <a class="code" href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">mqserver</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">   85</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">tcp_up</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">   87</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">udp_up</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">   89</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">uds_up</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">   91</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">mq_up</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd___server.html#a7e37c0b48f73b29a0295b475d5dc22b9">readParameters</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">  101</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">isAInterfaceUp</a>()</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keywordflow">if</span>(tcp_up || udp_up || uds_up || mq_up)</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">  110</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">checkAllInterfaces</a>()</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <span class="keywordflow">if</span>(tcpserver != NULL)</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                tcp_up = tcpserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                tcp_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keywordflow">if</span>(udpserver != NULL)</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                udp_up = udpserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                udp_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <span class="keywordflow">if</span>(udsserver != NULL)</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                uds_up = udsserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                uds_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <span class="keywordflow">if</span>(mqserver != NULL)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                mq_up = mqserver-&gt;<a class="code" href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">isActive</a>();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                mq_up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        }</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;};</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PRNGD_SERVER_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_prngd___server_html_a6f2def7dca00e4df89754e3b5aa8aaf4"><div class="ttname"><a href="class_prngd___server.html#a6f2def7dca00e4df89754e3b5aa8aaf4">Prngd_Server::mq_up</a></div><div class="ttdeci">bool mq_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:91</div></div>
<div class="ttc" id="class_prngd___server_html_ad0b9de11503ff2436653251dd89f4e79"><div class="ttname"><a href="class_prngd___server.html#ad0b9de11503ff2436653251dd89f4e79">Prngd_Server::Prngd_Server</a></div><div class="ttdeci">Prngd_Server()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:33</div></div>
<div class="ttc" id="class_tcp___server_html"><div class="ttname"><a href="class_tcp___server.html">Tcp_Server</a></div><div class="ttdoc">Implements a tcp-server for prngd. </div><div class="ttdef"><b>Definition:</b> Tcp_Server.h:19</div></div>
<div class="ttc" id="class_prngd___server_html_a464abab0c83554f6c69682810f300e7d"><div class="ttname"><a href="class_prngd___server.html#a464abab0c83554f6c69682810f300e7d">Prngd_Server::localserver</a></div><div class="ttdeci">Prngd * localserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:74</div></div>
<div class="ttc" id="class_prngd___server_html_ab374ada7cdb8b6eda7215549581e8467"><div class="ttname"><a href="class_prngd___server.html#ab374ada7cdb8b6eda7215549581e8467">Prngd_Server::uds_up</a></div><div class="ttdeci">bool uds_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:89</div></div>
<div class="ttc" id="class_udp___server_html"><div class="ttname"><a href="class_udp___server.html">Udp_Server</a></div><div class="ttdoc">Implements a udp-server for prngd. </div><div class="ttdef"><b>Definition:</b> Udp_Server.h:18</div></div>
<div class="ttc" id="class_prngd_html"><div class="ttname"><a href="class_prngd.html">Prngd</a></div><div class="ttdoc">Can generate random bits with the help of a BBS-generator or a ...... </div><div class="ttdef"><b>Definition:</b> Prngd.h:48</div></div>
<div class="ttc" id="class_prngd___server_html_a7e37c0b48f73b29a0295b475d5dc22b9"><div class="ttname"><a href="class_prngd___server.html#a7e37c0b48f73b29a0295b475d5dc22b9">Prngd_Server::readParameters</a></div><div class="ttdeci">int readParameters(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> Prngd_Server.cpp:11</div></div>
<div class="ttc" id="class_prngd___server_html_a341f15da03cd42224bc2dd4851a63ffc"><div class="ttname"><a href="class_prngd___server.html#a341f15da03cd42224bc2dd4851a63ffc">Prngd_Server::udp_up</a></div><div class="ttdeci">bool udp_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:87</div></div>
<div class="ttc" id="class_prngd___server_html_a21dc595a042cc50a08c916cc7c254980"><div class="ttname"><a href="class_prngd___server.html#a21dc595a042cc50a08c916cc7c254980">Prngd_Server::isAInterfaceUp</a></div><div class="ttdeci">bool isAInterfaceUp()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:101</div></div>
<div class="ttc" id="class_prngd___server_html_ad4f2bc38081117e23a1c385ff1dd5e0b"><div class="ttname"><a href="class_prngd___server.html#ad4f2bc38081117e23a1c385ff1dd5e0b">Prngd_Server::start</a></div><div class="ttdeci">void start(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> Prngd_Server.cpp:84</div></div>
<div class="ttc" id="class_prngd___server_html_acdc2f90accfdf4244e58368f509d627f"><div class="ttname"><a href="class_prngd___server.html#acdc2f90accfdf4244e58368f509d627f">Prngd_Server::udsserver</a></div><div class="ttdeci">Uds_Server * udsserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:80</div></div>
<div class="ttc" id="class_prngd___server_html_a5373032c21c2cc823b199dc2930abe2e"><div class="ttname"><a href="class_prngd___server.html#a5373032c21c2cc823b199dc2930abe2e">Prngd_Server::~Prngd_Server</a></div><div class="ttdeci">~Prngd_Server()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:48</div></div>
<div class="ttc" id="class_prngd___server_html_ad99025c55191804ad3a296035383e7f5"><div class="ttname"><a href="class_prngd___server.html#ad99025c55191804ad3a296035383e7f5">Prngd_Server::checkAllInterfaces</a></div><div class="ttdeci">void checkAllInterfaces()</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:110</div></div>
<div class="ttc" id="class_prngd___server_html"><div class="ttname"><a href="class_prngd___server.html">Prngd_Server</a></div><div class="ttdoc">Main server programm to run prngd as tcp, udp, uds or mq server (or all togehter). </div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:28</div></div>
<div class="ttc" id="class_m_q___server_html"><div class="ttname"><a href="class_m_q___server.html">MQ_Server</a></div><div class="ttdoc">Implements a message-queue-server for prngd. </div><div class="ttdef"><b>Definition:</b> MQ_Server.h:19</div></div>
<div class="ttc" id="class_prngd___server_html_a56b3481beeb7ae2fb1309f09ab2faec5"><div class="ttname"><a href="class_prngd___server.html#a56b3481beeb7ae2fb1309f09ab2faec5">Prngd_Server::mqserver</a></div><div class="ttdeci">MQ_Server * mqserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:82</div></div>
<div class="ttc" id="class_prngd___server_html_a668fa002a51239380b13333ade036250"><div class="ttname"><a href="class_prngd___server.html#a668fa002a51239380b13333ade036250">Prngd_Server::tcpserver</a></div><div class="ttdeci">Tcp_Server * tcpserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:76</div></div>
<div class="ttc" id="class_prngd___server_html_a98c5ea57980401cce1bc67fa3557df07"><div class="ttname"><a href="class_prngd___server.html#a98c5ea57980401cce1bc67fa3557df07">Prngd_Server::tcp_up</a></div><div class="ttdeci">bool tcp_up</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:85</div></div>
<div class="ttc" id="class_com___interface_html_af4b655641d2e003fa7595252e35a13f7"><div class="ttname"><a href="class_com___interface.html#af4b655641d2e003fa7595252e35a13f7">Com_Interface::isActive</a></div><div class="ttdeci">bool isActive()</div><div class="ttdef"><b>Definition:</b> Com_Interface.h:54</div></div>
<div class="ttc" id="class_uds___server_html"><div class="ttname"><a href="class_uds___server.html">Uds_Server</a></div><div class="ttdoc">Implements a Unix-domain-socket server for prngd. </div><div class="ttdef"><b>Definition:</b> Uds_Server.h:22</div></div>
<div class="ttc" id="class_prngd___server_html_a21407f702f0fe5cc21a9da0be7f93264"><div class="ttname"><a href="class_prngd___server.html#a21407f702f0fe5cc21a9da0be7f93264">Prngd_Server::udpserver</a></div><div class="ttdeci">Udp_Server * udpserver</div><div class="ttdef"><b>Definition:</b> Prngd_Server.h:78</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>Prngd_Server.h</b></li>
    <li class="footer">Generated on Sun Aug 31 2014 18:01:31 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
>>>>>>> .r39
>>>>>>> .r46
